package com.howcan.v1;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.KeyEvent;
import java.lang.reflect.Method;

public class SplashScreenActivity extends Activity
{
  public static final int DELAY = 1200;

  public boolean dispatchKeyEvent(KeyEvent paramKeyEvent)
  {
    return false;
  }

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(R.layout.splash_screen_view);
  
    Handler local1 = new Handler()
    {
      public void handleMessage(Message paramMessage)
      {
        super.handleMessage(paramMessage);
        SplashScreenActivity.this.finish();
        startActivity(new Intent(SplashScreenActivity.this, MainActivity.class));
        return;
//    local1.sendEmptyMessageDelayed(2, 200L);

      }
    };
    local1.sendEmptyMessageDelayed(2, DELAY );
  }

  protected void onDestroy()
  {
//    LocationCenter.instance().unregister(this);
    super.onDestroy();
  }

  protected void onPause()
  {
    super.onPause();
  }

  protected void onResume()
  {
    super.onResume();
  }

  protected void onStop()
  {
    super.onStop();
  }
}
